package com.work.libtest2.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.work.libtest2.entity.Employee;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;

/**
 * ClassName: EmployeeMapper
 * Package: com.work.libtest2.mapper
 * Description:
 *
 * @Author
 * @Create 2024/6/5 21:32
 * @Version 1.0
 */
@Mapper
public interface EmployeeMapper extends BaseMapper<Employee>{

    /**
     *  根据员工的id查询员工          这是mybatis的简写方式 ， 根专业的方式在EmployeeMapper。xml查看
     *  @Select("select * from employee where empId = #{id}")
     * */
/**
 *
        @Select("select * from employee where empId = #{id}")
        Employee getById(int id);
 */

}
